package com.xlongwei.info.util;

import com.networknt.config.ConfigNoCache;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class InfoConfig extends TenantConfig {
	public static InfoConfig INSTANCE = reload();
	private boolean rawToken;
	private boolean backup;
	private int startGapMinutes;
	private int startLockMinutes;
	private int endGapMinutes;

	public static InfoConfig reload() {
		return INSTANCE = ConfigNoCache.getJsonObjectConfig("info", InfoConfig.class);
	}
}
